import request from "../utils/request";

export function getMenu():Promise<any> {
    return  request({
        url:'/menu/getMenu',
        method:'get'
    })
}

export function getlist(data:any):Promise<any> {
    return  request({
        url:'/menu/list',
        method:'get',
        params:data
    })
}

export function getAllcatalogue(data:any):Promise<any> {
    return  request({
        url:'/menu/getAllcatalogue',
        method:'get',
        params:data
    })
}


export function addMenu(data:any):Promise<any> {
    return  request({
        url:'/menu/add',
        method:'post',
        data
    })
}

export function delMenu(data:any):Promise<any> {
    return  request({
        url:'/menu/del',
        method:'post',
        params:data
    })
}


export function editMenu(data:any):Promise<any> {
    return  request({
        url:'/menu/edit',
        method:'post',
        data
    })
}
